/*
 * Copyright (c) ShaoxiongDu <Shaoxiong.dev@aliyun.com> 2021 all Rights Reserved
 */

package zh.codegym.task.task06.task0604;

/* 
Cat 计数器
*/

public class Cat {
    public static int catCount = 0;

    //在此编写你的代码
    public Cat() {
        catCount++;
    }

    @Override
    protected void finalize() throws Throwable {
        super.finalize();
        catCount--;
    }

    public static void main(String[] args) {

    }
}